package com.dgut;

import redis.clients.jedis.Jedis;

/*
* 单实例连接
* */
public class Demo1 {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.162.128",6379);
        jedis.set("demo1","demo1101");
        String demo1 = jedis.get("demo1");
        System.out.println("demo1的变量值是:"+demo1);
    }
}
